<?php
// <copyright file="AuthenticationType.cs" company="NQtec">
// Copyright (c) 2008, 2009 All Right Reserved, http://www.dqer.com/
// Copyright (c) 2008, 2009 All Right Reserved, http://www.nqtec.com/
//
// This source is part of the DQER library that released under the LGPL.
// Please see the License.txt file for more information.
// All other rights reserved.
//
// THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY 
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//
// </copyright>
// <author>Victor Gatkov</author>
// <email>v.gatkov@nqtec.com</email>
// <email>info@dqer.com</email>
// <date>2008-09-11</date>
// <summary>Contains a base, abstract class for an AuthorisationPolicyProvider</summary>

if(!defined('IN_DQER_003311')){die('');exit;}
if(DEBUG_LEVEL>=2){ob_start();}


 if(PGTP=='sign' || PGTP=='form') {

// out to auth class !!!! later !!!!

   define('PASS_ENC',true);
   define('PASS_ENC_PARANOID',true);


   define('FORM_SEC','JS');
//define('FORM_SEC','CAPTCHA');

//define('FORM_SEC','NONE');  // !!! NEVA-EVA USE IT !!!

   define('FORM_SEC_DEFAULT','JS');
   if(!defined('FORM_SEC')){define('FORM_SEC','FORM_SEC_DEFAULT');}
   if(DEBUG_LEVEL>=2){echo'# form security type..'.FORM_SEC.'<br />';}

   define('JS_PATH',MODULES_PATH.'/js');   //!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   if(DEBUG_LEVEL>=2){echo'# javascript path assigned..<br />';}

   define('CAPTCHA_PATH',MODULES_PATH.'/forms/captcha');   //!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   if(DEBUG_LEVEL>=2){echo'# captcha path assigned..<br />';}


   $mod_s['head'][] = 'forms';
 
   require_once(MODULES_PATH."/forms/form.class.php");         if(DEBUG_LEVEL>=2){echo'# form class loaded..<br />';}
   require_once(MODULES_PATH."/forms/render_form.class.php");  if(DEBUG_LEVEL>=2){echo'# form_render class loaded..<br />';}
   $form           = new Form;
   $render_form    = new RenderForm;

 }
?>
